import {Base64} from "js-base64";

export function userType(token) {
    let Base64 = require('js-base64').Base64;
    let info = token.split('.')[1];
    info = Base64.decode(info);
    // console.log('token信息',Base64.decode(token));
    info = JSON.parse(info);
    console.log('token信息--info',info);
    return {user_type:info['user_type'],user_name:info['user']};
}
